$(function() {
/*下拉菜单*/
jQuery("#nav").slide({ type:"menu", titCell:"li", targetCell:".sub",effect:"slideDown",delayTime:300,triggerTime:0,returnDefault:true});
$(".m-nav").click(function () { $(".qm-top").toggleClass("block"); });
$(".mnavm").click(function(){
    $(".sidenav .bd").slideToggle("slow");
});
/*头部固定导航*/
var myElement = document.querySelector("header");
  // construct an instance of Headroom, passing the element
  var headroom  = new Headroom(myElement);
  // initialise
  headroom.init(); 
})
 
 

 